package com.example.demo.configration;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * Created by Administrator on 2018\11\13 0013.
 */
@Data
@Component
@ConfigurationProperties(prefix = "home")
public class ConfigrationProperties {
    @Value(value = "${czc.company.name}")
    private String companyName;
    @Value(value = "${czc.employee.name}")
    private String employeeName;
    @Value(value = "${czc.all.names}")
    private String allName;
    @Value(value = "${com.czc.boot.value}")
    private String randomStr;
    @Value(value = "${com.czc.boot.number}")
    private Integer randomInt;
    @Value(value = "${com.czc.boot.bignumber}")
    private Long randomLong;
    @Value(value = "${com.czc.boot.test1}")
    private Integer random10;
    @Value(value = "${com.czc.boot.test2}")
    private Integer random10to20;

    private String address;
    private String employee;
}
